Conversation
DavertMik
left a comment
There was a problem hiding this comment.
Can we just split filename path and create folders automatically?
I.saveScreenshot('custom/debug.png') will create output/custom/debug.png
I may get it wrongly as #5404 request may try to save the screenshot to custom path not inside the output folder. |
|
@kobenguyent we can use absolute paths to handle this if provided path is absolute -> save into it so use could use it like this: I dont see a need for another very similar method Just detect global paths and provide such solution in UI I.saveScreenshotToMyPath() inside custom steps file |
|
I see. Initially, I was thinking to reimplement the same function but I thought it may be backwards compatibility so that's why I introduced the new one. |
Motivation/Description of the PR
Applicable helpers:
Type of change
Checklist:
npm run docs)npm run lint)npm test)